<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单管理</title>
    <link type="text/css" rel="stylesheet" href="../commons/bootstrap/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="../commons/bootstrap/table/bootstrap-table.min.css">
    <link type="text/css" rel="stylesheet" href="../commons/validate/bootstrapValidator.css">
    <link type="text/css" rel="stylesheet" href="../commons/toastr/toastr.min.css">
    <link rel="stylesheet" href="../commons/css/common.css" />
</head>
<body>
<div class="form-groupd">
    <label for="searchOderId" class="label-control">订单编号</label>
    <input type="text" class="form-control" id="searchOderId" placeholder="订单编号">
</div>
<div class="form-groupd">
    <label for="searchName" class="label-control">会员卡号</label>
    <input type="text" class="form-control" id="searchName" placeholder="会员卡号">
</div>
<button type="button" class="btn btn-primary" onclick="oderManage.search()">搜索订单</button>
<!--<button type="button" class="btn btn-primary" onclick="oderManage.add()">新增订单</button>-->
<!-- tableList -->
<div class="tab-pane">
    <table class="table table-striped table-hover table-bordered" id="oderList">
        <thead style="background-color: #BEDDFA">

        </thead>
    </table>
</div>
<!-- 订单模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    订单信息
                </h4>
            </div>
            <div class="modal-body">
                <form id="oderForm">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">订单编号</span>
                                <input class="form-control" placeholder="订单编号" readonly="readonly" name="orderId" id="orderId">
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">会员卡号</span>
                                <input class="form-control" placeholder="会员卡号" name="cardId" id="cardId">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">会员等级</span>
                                <select class="form-control" id="cardType" name="cardType">
                                    <option value="1">普通会员</option>
                                    <option value="2">青铜会员</option>
                                    <option value="3">白银会员</option>
                                    <option value="4">黄金会员</option>
                                    <option value="5">钻石会员</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">应付金额</span>
                                <input class="form-control" placeholder="应付金额" name="price" id="price">
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">实付金额</span>
                                <input class="form-control" placeholder="实付金额" name="pay" id="pay">
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">商品积分</span>
                                <input class="form-control" placeholder="商品积分" id="credit" name="credit">
                                </select>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">订单状态</span>
                                <select class="form-control" id="status" name="status">
                                    <option value="0">未核验</option>
                                    <option value="1">已审核</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group input-group">
                                <span class="input-group-addon">备注</span>
                                <input class="form-control" placeholder="备注" name="momo" id="momo">
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="oderManage.operate();">
                    确认
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!-- system modal start -->
<div id="ycf-alert" class="modal">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                <h5 class="modal-title"><i class="fa fa-exclamation-circle"></i> [Title]</h5>
            </div>
            <div class="modal-body">
                <p>[Message]</p>
            </div>
            <div class="modal-footer">
                <center>
                    <button type="button" class="btn btn-primary ok" data-dismiss="modal">[BtnOk]</button>
                    <button type="button" class="btn btn-default cancel" data-dismiss="modal">[BtnCancel]</button>
                </center>
            </div>
        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="../commons/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="../commons/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="../commons/bootstrap/table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="../commons/bootstrap/table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="../commons/validate/bootstrapValidator.min.js"></script>
<script type="text/javascript" src="../commons/toastr/toastr.min.js"></script>
<script type="text/javascript" src="../commons/confirm/bootstrap.confirm.js"></script>
<script type="text/javascript" src="oderApi.js"></script>
</html>